package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.query.StrategyCommentQuery;
import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import org.springframework.data.domain.Page;

public interface IStrategyCommentService {
    /**
     * 添加评论
     * @param comment
     */
    void addComment(StrategyComment comment);

    /**
     * 查询评论
     * @param qo 分页及查询条件
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQuery qo);

    /**
     * 点赞
     * @param toid 评论id
     * @param fromid 点赞人id
     * @return
     */
    StrategyComment commentThumbUp(String toid, Long fromid);
}
